﻿
namespace GlobalizationTools.ViewModel
{
    public class TreeViewFolderViewModel: TreeViewItemViewModel
    {
        public TreeViewFolderViewModel(string name, TreeViewItemViewModel parent) :
            base(parent, true, false)
        {
            _name = name;
        }

        public string GetHierarchyPath()
        {
            string path = string.Concat(_name, '\\');
            if (_parent is TreeViewFolderViewModel)
            {
                string parentPath = ((TreeViewFolderViewModel)_parent).GetHierarchyPath();
                path = string.Concat(parentPath, path);
            }
            return path;
        }
    }
}
